* {
  margin: 0;
  padding: 0;
  font-family: "Microsoft yahei", serif;
}
li {
  list-style-type: none;
}
body {
  overflow: hidden;
  user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  display: flex;
  align-items: center;
}
#wrap {
  position: relative;
  width: 512px;
  height: 768px;
  margin: 50px auto;
  box-shadow: 0 0 10px 2px #ccc;
  background-color: #ccc;
}
#level {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
}
#level h1 {
  font-size: 40px;
  padding-top: 60px;
  padding-bottom: 150px;
  text-align: center;
  color: #fff;
  line-height: 60px;
}
#level p {
  margin: 30px auto;
  width: 200px;
  height: 35px;
  line-height: 35px;
  text-align: center;
  background-color: rgb(243, 239, 239);
  font-weight: bolder;
  cursor: pointer;
  letter-spacing: 5px;
  box-shadow: 0 0 10px 2px #ccc;
  border-radius: 2px;
  transition: all 0.3s;
  overflow: hidden;
}
#level p:hover {
  background-color: rgb(105, 203, 228);
  color: #fff;
}
#map {
  overflow: hidden;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../img/bg_1.jpg");
}
#map > #biu_all {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}
/* 创建其他属性 */
#map .plane,
#map .biu,
#map .enemy,
#map .boom,
#map .boom2 {
  position: absolute;
}

#map .plane {
  z-index: 8;
}

#map .biu {
  z-index: 10;
}

#map .boom2 {
  z-index: 11;
  animation: bling 2s 1;
  animation-fill-mode: forwards;
}

#map .enemy {
  z-index: 9;
}

#map .boom {
  z-index: 7;
  animation: fade 0.8s 1;
  animation-fill-mode: forwards;
}
#score {
  display: none;
  position: absolute;
  top: 10px;
  left: 10px;
  color: #fff;
  line-height: 20px;
  font-size: 16px;
  font-weight: bold;
  z-index: 20;
}
#reset_start {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 30;
  display: flex;
  flex-direction: column;
  display: none;
}

#reset_start p {
  width: 300px;
  height: 40px;
  line-height: 40px;
  margin: 10px auto;
  color: #fff;
  font-size: 18px;
  letter-spacing: 2px;
}
#reset_start p:first-child {
  margin-top: 140px;
}
#reset_start p span {
  font-weight: bolder;
  font-size: 22px;
  text-align: center;
}

#reset_start .end_score span {
  color: red;
}

#reset_start .end_title span {
  color: #ffa80c;
}
#reset_start .end_reset {
  font-family: "楷体";
  font-size: 20px;
  width: 100px;
  height: 35px;
  background: rgba(255, 255, 255, 0.8);
  color: #000;
  font-weight: bolder;
  line-height: 35px;
  text-align: center;
  border-radius: 3px;
  cursor: pointer;
  margin-top: 30px;
}

#reset_start .end_reset:hover {
  background: #fff;
}
/* 碰撞消失动画 */
@keyframes fade {
  from {
    opacity: 1;
  }

  to {
    opacity: 0;
  }
}

@keyframes bling {
  0% {
    opacity: 1;
  }

  20% {
    opacity: 0;
  }

  40% {
    opacity: 1;
  }

  60% {
    opacity: 0;
  }

  80% {
    opacity: 1;
  }

  100% {
    opacity: 0;
  }
}
